package cn.redsoft.wechatapi.msg.resp.passivity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class VideoResponseMsg extends PassivityResponseMsg {

	@XStreamAlias("Video")
	private Video video;

	public VideoResponseMsg() {
		this.msgType = PassivityResponseMsgType.VIDEO;
	}

	public VideoResponseMsg(String toUserName, String fromUserName,
			long createTime) {
		super(toUserName, fromUserName, createTime, null);
		this.msgType = PassivityResponseMsgType.VIDEO;
	}

	public Video getVideo() {
		return video;
	}

	public void setVideo(Video video) {
		this.video = video;
	}

	@Override
	public String toString() {
		return "VideoResponseMsg [video=" + video + ", toUserName="
				+ toUserName + ", fromUserName=" + fromUserName
				+ ", createTime=" + createTime + ", msgType=" + msgType + "]";
	}

	@XStreamAlias("Video")
	public static class Video {
		@XStreamAlias("MediaId")
		private String mediaId;

		@XStreamAlias("Title")
		private String title;

		@XStreamAlias("Description")
		private String description;

		public Video() {
		}

		public String getMediaId() {
			return mediaId;
		}

		public void setMediaId(String mediaId) {
			this.mediaId = mediaId;
		}

		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getDescription() {
			return description;
		}

		public void setDescription(String description) {
			this.description = description;
		}

		@Override
		public String toString() {
			return "Video [mediaId=" + mediaId + ", title=" + title
					+ ", description=" + description + "]";
		}

	}
}
